package com.swpu.library.sys.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hui
 * @since 2020-11-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Roles implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Integer id;

    /**
     * 角色类别名
     */
    private String name;

    /**
     * 逻辑删除 
     */
    @TableLogic
    private Boolean deleted;

    /**
     * 添加时间
     */
    @TableField(fill=FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 删除时间
     */
    private LocalDateTime deleteTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
    /**
     * 可借天数
     */
    private int borrowDay;
}
